//
// Created by bxw57 on 2024/6/13.
//

#ifndef CPPPRACTICE_BASE_H
#define CPPPRACTICE_BASE_H
template<class T>
class Base{
public:
    Base(int cap) : cap(cap), top(0) {arr = new T[cap];}
    virtual void push(T val) = 0;
    virtual T pop() = 0;

    void run();
    void show();

protected:
    T* arr;
    int cap;
    int top;
};




#endif //CPPPRACTICE_BASE_H
